home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / Jogos de Azar / rocket_launcher.swf / scripts / DefineButton2_178 / BUTTONCONDACTION on(press, keyPress s).as
Text File  |  2006-01-17  |  1KB  |  41 lines

  1. on(press, keyPress "s"){
  2.    if(isPlayingSpin == "5")
  3.    {
  4.       if(singleCredit != "0" or multiCredit == "3")
  5.       {
  6.          isPlayingSpin = "10";
  7.          isPlaying = "10";
  8.          stop1 = random("30") + "5";
  9.          stop2 = random("10") + "5";
  10.          stop3 = random("10") + "5";
  11.          set("_level0/reel1/:keepGoing","1");
  12.          set("_level0/reel2/:keepGoing2","1");
  13.          set("_level0/reel3/:keepGoing3","1");
  14.          set("_level0/wc/:winnerLevel","0");
  15.          tellTarget("/startplaying")
  16.          {
  17.             play();
  18.          }
  19.          if(soundPlaying == "1")
  20.          {
  21.             tellTarget("reelsound")
  22.             {
  23.                play();
  24.             }
  25.             tellTarget("/reelstop3")
  26.             {
  27.                play();
  28.             }
  29.             tellTarget("/reelstop2")
  30.             {
  31.                play();
  32.             }
  33.             tellTarget("/reelstop1")
  34.             {
  35.                play();
  36.             }
  37.          }
  38.       }
  39.    }
  40. }
  41.